package _interface.Exer2;

public class ComparableCircle extends Circle implements CompareObject {
    @Override
    public int compareTo(Object o) {
        ComparableCircle comparableCircle;
        if (this == o) {
            return 0;
        }
        if (o instanceof ComparableCircle cc) {
            return this.getRadius() - cc.getRadius();
        }
        return -1;
    }
}
